package com.fy.common.constant;

import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;


@Getter
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
public class CmdConstants {
    // *********************************请求指令************************************
    //绑定连接
    public static final String REQUEST_BINDING = "10001";
    //发起一对一会话
    public static final String REQUEST_SINGLE_CHAT = "10002";
    //正在输入
    public static final String REQUEST_TYPING = "10004";
    //消息已读
    public static final String REQUEST_READ_MESSAGE = "10006";

    //消息撤回
    public static final String REQUEST_RECALL = "10007";


    //阅后即焚
    public static final String REQUEST_READ_DESTROY = "10010";


    //心跳检测
    public static final String REQUEST_HEARTBEAT = "10008";
    //删除消息
    public static final String REQUEST_DELETE_MESSAGE = "10015";
    //阅后即焚已读
    public static final String REQUEST_READ_DESTROY_READ= "10016";

    //群聊
    public static final String REQUEST_GROUP_CHAT = "11000";


    // *********************************返回指令************************************


    //绑定成功
    public static final String RESPONSE_BINDING = "20001";
    //消息发送成功
    public static final String RESPONSE_SEND_SUCCESS = "20002";
    //接收一对一消息
    public static final String RESPONSE_SINGLE_CHAT = "20003";
    //接收一对一消息
    public static final String RESPONSE_TYPING = "20004";
    //消息已读
    public static final String RESPONSE_READ_MESSAGE = "20006";
    //消息撤回
    public static final String RESPONSE_RECALL = "20007";
    //心跳检测
    public static final String RESPONSE_HEARTBEAT = "20008";


    //添加好友事件通知
    public static final String RESPONSE_ADD_FRIEND = "20009";

    //阅后即焚消息 - 单聊
    public static final String RESPONSE_READ_DESTROY = "20010";

    //会话置顶
    public static final String RESPONSE_SESSION_TOP = "20011";

    //会话免打扰
    public static final String RESPONSE_MUTE = "20012";

    //邀请进群审核
    public static final String RESPONSE_INVITE_GROUP_VERIFY = "20013";

    //邀请进群成功
    public static final String RESPONSE_INVITE_GROUP_SUCCESS = "20014";
    //删除消息
    public static final String RESPONSE_DELETE_MESSAGE = "20015";


    //阅后即焚已读
    public static final String RESPONSE_READ_DESTROY_READ= "20016";


    //撤回成功
    public static final String RESPONSE_RECALL_SUCCESS = "20017";

    //撤回成功
    public static final String RESPONSE_DELETE_SUCCESS = "20018";


    //**************************************************************************


    //群聊
    public static final String RESPONSE_GROUP_CHAT = "21000";

    /**
     * 加群
     */
    public static final String RESPONSE_ADD_GROUP = "21001";

    /**
     * 退群
     */
    public static final String RESPONSE_QUIT_GROUP = "21002";

    /**
     * 踢出群
     */
    public static final String RESPONSE_KICK_GROUP = "21003";

    /**
     * 加群
     */
    public static final String RESPONSE_ADD_GROUP_REQUEST = "21005";


    //错误指令
    //数据格式错误
    public static final String DATA_FORMAT_ERROR = "30000";
    //用户未登录
    public static final String USER_NOT_LOGIN = "30001";

    //未绑定到tcp服务器
    public static final String NOT_BINDING = "30002";









}
